<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>选择器</title>
    <style>
        div {
            background-color: blueviolet;
        }
        
        #top {
            color: red;
        }
        
        .content {
            background-color: aqua;
            color: pink;
        }
        
        * {
            font-size: 20px;
        }
        
        ul li {
            color: pink;
        }
        
        .bottom>p {
            color: red;
        }
        
        .jiangsu~li {
            color: aqua;
        }
        
        h1,
        h2,
        h3,
        .test {
            color: red;
        }
        
        a.baidu {
            color: aqua;
        }
    </style>
</head>

<body>
    <div>标签选择器</div>
    <div>test</div>

    <p id="top">id选择器</p>

    <span class="content">类选择器</span>

    <ul>
        <li>html</li>
        <li>css</li>
        <li>js</li>
    </ul>

    <ul>
        <li>苹果</li>
        <li>橘子</li>
        <li>西瓜</li>
    </ul>

    <div class="bottom">
        <p>第一个p标签</p>
        <p>第二个p标签</p>
        <div>
            <p>第三个p标签</p>
        </div>
    </div>

    <ul>
        <li class="jiangsu">江苏省</li>
        <li>山西省</li>
        <li>上海市</li>
    </ul>

    <h1>我是一个h1</h1>
    <h2>我是一个h2</h2>
    <h3>我是一个h3</h3>
    <span class="test">test</span>

    <a class="baidu" href="#">百度一下！</a>
    <a href="#">淘宝！</a>
</body>

</html>